package com.yunhe.controller;

import com.yunhe.pojo.workonePojo;
import com.yunhe.pojo.worktwoPoji;
import com.yunhe.service.PayOrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;


@RestController
public class PayOrderController {

    @Autowired
    PayOrderServiceImpl payOrderService;

    @RequestMapping("dayAndToday")
    public ArrayList<workonePojo> dayAndToday() {
        System.out.println(payOrderService.dayAndToday());
        return payOrderService.dayAndToday();
    }

    @RequestMapping("shiWuTian")
    public ArrayList<worktwoPoji> shiWuTian() {
        System.out.println(payOrderService.shiWuTian());
        return payOrderService.shiWuTian();
    }
}
